<?php
Yii::app()->clientScript->registerCssFile(Yii::app()->theme->cssUrl.'main.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->theme->cssUrl.'jquery-ui-1.8.12.custom.css');
Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->jsUrl.'jquery-1.5.min.js');
Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->jsUrl.'jquery-ui-1.8.12.custom.min.js');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="ru">
    <head>
        <title><?= Yii::app()->name; ?></title>
        <!--[if IE]>
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <meta HTTP-EQUIV='content-type' CONTENT='text/html; charset=UTF-8' />
	<script language="JavaScript" src="js/js.js" type="text/javascript"></script>
        <script language="JavaScript" src="js/showhide.js" type="text/javascript"></script>
        <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-22397922-1']);
        _gaq.push(['_trackPageview']);
        (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
        </script>
        <!-- Put this script tag to the <head> of your page -->
        <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?23"></script>
        <script type="text/javascript">
          VK.init({apiId: 2270459, onlyWidgets: true});
        </script>
        <script type="text/javascript" charset="utf-8">
            $(document).ready(function() {
                    $('#tabs').tabs();
            });
        </script>
</head>
<body>
<div class="div_body">
    <div class="div_block">
        <div class="banner_top">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="728" height="90" id="FlashID" title="��� ������������">
  <param name="movie" value="<?= Yii::app()->theme->imgUrl; ?>728�90.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="9.0.45.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don�t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="<?= Yii::app()->theme->imgUrl; ?>728_90.swf" width="728" height="90">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="9.0.45.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Содержание баннера на данной странице требует наличия более новой версии Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
        </div>
    </div>
    <div class="div_block">
        <div class="logo">
            <a href="/"><img src="<?= Yii::app()->theme->imgUrl; ?>logo.jpg" alt="" /></a>
        </div>

        <?php if( !Yii::app()->user->isGuest()) : ?>
        <div class="login">
            <div class="log_menu">
                &nbsp;<span style="color: #000000; font-weight: bold;">Добро пожаловать, (<?= Yii::app()->user->user_login;?>)</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <?php if(Yii::app()->user->isUser()):?>
                    &nbsp;<a href="<?= Yii::app()->controller->createUrl('/profile'); ?>">Профиль</a>&nbsp;|
                    &nbsp;<a href="<?= Yii::app()->controller->createUrl('/profile/tariff_plans'); ?>">Мои Тарифы</a>&nbsp;|
                    &nbsp;<a href="<?= Yii::app()->controller->createUrl('/profile/my_lots'); ?>">Мои Заявки</a>&nbsp;|
                <?php elseif(Yii::app()->user->isUserSoleProprietorship()):?>
                    &nbsp;<a href="<?= Yii::app()->controller->createUrl('/profile/my_lots_metals'); ?>">Мои Объявления</a>&nbsp;|
                <?php endif;?>
                &nbsp;<a href="<?= Yii::app()->controller->createUrl('/logout'); ?>" class="active">Выйти</a>
            </div>
        </div>
        <?php endif;?>

        <div class="clear_both"></div>
    </div>
    <div class="div_block" align="right">
        <!-- Put this div tag to the place, where the Like block will be -->
        <div id="vk_like" style="display:inline; " align="right"></div>
        <script type="text/javascript">
        VK.Widgets.Like("vk_like", {type: "button", verb: 1});
        </script>
        <div style="display: inline; padding-right: 30px;" align="right"><a href="http://www.twitter.com/ifinby"><img src="http://twitter-badges.s3.amazonaws.com/twitter-a.png" alt="Читать ifinby в Твиттере"/></a></div>
        <div align="right" style="display:inline;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FFinance%2F186576504719949&amp;layout=button_count&amp;show_faces=true&amp;width=100&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; float: right; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
        <div class="clear_both"></div>
    </div>
    <div class="div_block">
        <div class="main_menu">
            <ul class="main_menu_left">
                <li><a href="/" >Главная</a></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/news'); ?>">Новости и Мнения</a></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/currency'); ?>">Валюта</a></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/metals'); ?>">Мерные Слитки</a><i class="new_icon"></i></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/ads'); ?>">Реклама</a></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/tariffs'); ?>">Тарифы</a></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/about'); ?>">О Сервисе</a></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/contact'); ?>">Связаться</a></li>
            </ul>
            <ul class="main_menu_right">
                <?php if ( Yii::app()->user->isGuest() ) : ?>
                <li><a href="<?= Yii::app()->controller->createUrl('/login'); ?>" >Войти</a></li>
                <li><a href="<?= Yii::app()->controller->createUrl('/register'); ?>" >Зарегистрироваться</a></li>
                <?php else:?>
                <li>&nbsp;</li>
                <?php endif; ?>
            </ul>
            <div class="clear_both"></div>
        </div>
    </div>

    <div class="div_block">
        <div class="content">
            <div class="content_left">
                <?= $content; ?>
            </div>
            <div class="content_right" align="center">
                <div class="banner_right">
                    <a href="http://spplaw.by" target="_blank"><img alt="ООО Степановский Папакуль и Партнёры ул Куйбышева 16 4й этаж 220029 Минск Республика Беларусь" title="ООО Степановский Папакуль и Партнёры ул Куйбышева 16 4й этаж 220029 Минск Республика Беларусь" src="<?= Yii::app()->theme->imgUrl; ?>spp_logo.png" /></a>
                </div>
                <br /><br />
                <div class="banner_right">
                    <a href="http://webinar.by/" target="_blank"><img alt="" src="<?= Yii::app()->theme->imgUrl; ?>webinarbaner.gif" /></a>
                </div>
                <div class="banner_right">
<iframe frameborder="0" scrolling="no" height="157" width="265" allowtransparency="true" marginwidth="0" marginheight="0" src="http://fxrates.forexpros.ru/index.php?pairs_ids=1;3;2;4;7;5;6;&header-text-color=%23FFFFFF&curr-name-color=%230059b0&inner-text-color=%23000000&green-text-color=%232A8215&green-background=%23B7F4C2&red-text-color=%23DC0001&red-background=%23FFE2E2&inner-border-color=%23CBCBCB&border-color=%23cbcbcb&bg1=%23F6F6F6&bg2=%23ffffff&bid=hide&ask=hide&last=hide&open=hide&change=hide&last_update=hide"></iframe><span style="width:265px;"><span style="float:right"><span style="font-size: 11px;color: #333333;text-decoration: none;">Предоставленно информационным <a href="http://www.forexpros.ru/" target="_blank" style="font-size: 11px;color: #06529D; font-weight: bold;" class="underline_link">форекс</a> порталом - ForexPros</span></span></span>
                </div>
                <br /><br />
                <div class="banner_right">
<a href="http://www.ecopress.by" title="www.ecopress.by" target="_blank"> <img border="0" src="http://www.ecopress.by/cgi/informer.php?nb=USD,EUR,RUB&vb=USD,EUR,RUB&b=USD,EUR,RUB&k=USD/EUR,USD/RUB&inf=b6b6b6&bgc=ffffff&hbgc=ffffff&txtc=0059b0&htxtc=000000&border=cbcbcb&iborder=cbcbcb&numc=000000&datec=000080&copyc=000000&plusc=2a8215&minusc=ffdb00&is_b=1&is_ib=1&l=250" width="250" alt="   www.ecopress.by" /></a>
                </div>
                <br /><br />
                <div class="banner_right">
                    <a href="http://solution.by/" target="_blank"><img alt="" src="<?= Yii::app()->theme->imgUrl; ?>ingbaner.gif" /></a>
                </div>
                <br /><br />
                <div class="banner_right">
                    <a href="<?= Yii::app()->controller->createUrl('/tariffs'); ?>"><img alt="" src="<?= Yii::app()->theme->imgUrl; ?>banner_250_250_1.gif" /></a>
                </div>
                <br /><br />
                <div class="banner_right">
                    <a href="<?= Yii::app()->controller->createUrl('/tariffs'); ?>"><img alt="" src="<?= Yii::app()->theme->imgUrl; ?>banner_250_250_1.gif" /></a>
                </div>
            </div>

            <div class="clear_both"></div>
        </div>
    </div>

    <div class="div_block">
        <div class="footer">
          <div class="foot_menu"><a href="/">Главная</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/news'); ?>">Новости и Мнения</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/currency'); ?>">Валюта</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/metals'); ?>">Мерные Слитки</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/ads'); ?>">Реклама</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/tariffs'); ?>">Тарифы</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/about'); ?>">О сервисе</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/legal'); ?>">Обращение</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/map'); ?>">Карта сайта</a>&nbsp; |
            &nbsp; <a href="<?= Yii::app()->controller->createUrl('/contact'); ?>">Связаться</a> <br />
          </div>
          <div class="copyrights">
              <p>&copy; АйФин. Все права защищены &nbsp;<a href="<?= Yii::app()->controller->createUrl('/terms_of_use'); ?>">Правила пользования сервисом</a> &nbsp;&nbsp;<!--a href="<?= Yii::app()->controller->createUrl('/right'); ?>">Политика конфиденциальности</a--></p>
            <br />
          </div>
        </div>
    </div>

</div>
<!--Openstat--><span id="openstat2170642"></span><script type="text/javascript">
var openstat = { counter: 2170642, next: openstat, track_links: "all" }; (function(d, t, p) {
var j = d.createElement(t); j.async = true; j.type = "text/javascript";
j.src = ("https:" == p ? "https:" : "http:") + "//openstat.net/cnt.js";
var s = d.getElementsByTagName(t)[0]; s.parentNode.insertBefore(j, s);
})(document, "script", document.location.protocol);
</script><!--/Openstat-->
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=6778960; 
var sc_invisible=1; 
var sc_security="26bdb832"; 
</script>
<script type="text/javascript"
src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div
class="statcounter"><a title="custom counter"
class="statcounter"
href="http://statcounter.com/free_hit_counter.html"><img
class="statcounter"
src="http://c.statcounter.com/6778960/0/26bdb832/1/"
alt="custom counter" /></a></div></noscript>
<!-- End of StatCounter Code -->
</body>
</html>